{literal}
    <script type="text/javascript">
        function confirmSubmit()
        {
        var agree=confirm("Bạn có thực sự muốn xóa?");
        if (agree)
            return true ;
        else
            return false ;
        }
        $(function(){
            $('#time_c').datepicker();
        });
        
</script>
<style type="text/css">
	a:hover {
		background:#ffffff;
		text-decoration:none;
                
	}
	/*BG color is a must for IE6*/
	a.tooltip span {
		display:none;
		padding:2px 3px;
		margin-left:8px;
		width:auto;
	}
	a.tooltip:hover span{
		display:inline;
		position:absolute;
		background:#CCFF99;
		border:1px solid #cccccc;
		color:black;
	}
	</style>
        {/literal}
<table cellpadding="0" cellspacing="1" width="100%" bgcolor="#D3E1F1">
    <tr>
        <td width="80%" class="rongbay-form-title">
        <h1><a href="tourist_attractions.html">QUẢN LÝ ĐỊA ĐIỂM DU LỊCH</a> [ <a href="tourist_attractions.html?cmd=add">Thêm mới</a> ]</h1>
        </td>
        <td width="16%" class="form_title_button">{if $cate_admin}<a href="{$cate_admin.url}">{$cate_admin.tittle}</a>{/if}</td>
    </tr>
</table>
<div align='center' style="color: red;">{$mess}</div>
        <div align="right">Tổng số <strong>{$total_tuas}</strong> địa điểm</div>
        <table class="form-search-filter" width="100%" cellspacing="0" cellpadding="5" border="1" bgcolor="#D3E1F1" style="border-collapse:collapse" bordercolor="#999999">
    <tr>
        <td width="12%" align="right"><strong>Trạng thái:</strong></td>
        <td colspan="5">
            <div style="float:left; width:70px">
                <input {if $tua_status=='0'}checked="checked"{/if} type="radio" value="0"
                       name="tua_status" id="block">
                <label style="cursor:pointer" for="block">Tất cả</label>
            </div>
            <div style="float:left; width:120px">
                <input {if $tua_status=='1'}checked="checked"{/if} type="radio" value="1"
                       name="tua_status" id="block1">
                <label style="cursor:pointer" for="block1">Đang sử dụng</label>
            </div>
            <div style="float:left; width:80px">
                <input {if $tua_status=='2'}checked="checked"{/if} type="radio" value="2"
                       name="tua_status" id="block2">
                <label style="cursor:pointer" for="block2">Đang ẩn</label>
            </div>
            <div style="float:left; width:80px">
                <input {if $tua_status=='-1'}checked="checked"{/if} type="radio" value="-1"
                       name="tua_status" id="block3">
                <label style="cursor:pointer" for="block3">Đã xóa</label>
            </div>
            <div style="float:left; width:200px">
                <input {if $tua_status=='10'}checked="checked"{/if} type="radio" value="10"
                       name="tua_status" id="block4">
                <label style="cursor:pointer" for="block4">Đang sử dụng + Ẩn</label>
            </div>
        </td>
    </tr>
    <tr>
        <td align="right"><strong>ID:</strong></td>
        <td align="left" width="285px"><input type="text" id="tua_id" name="tua_id" value="{$tua_id}" style="width:200px"/></td>
        <td align="right"><strong>Tiêu đề:</strong></td>
        <td align="left"><input type="text" id="tua_name" name="tua_name" value="{$tua_name}" style="width:200px"/></td>
        <td align="right"><strong>Mô tả:</strong></td>
        <td align="left"><input type="text" id="tua_intro" name="news_intro" value="{$tua_intro}" style="width:200px"/></td>
    </tr>
    <tr>
        <td align="right" nowrap="nowrap"><strong>Nội dung tin:</strong></td>
        <td align="left" nowrap="nowrap"><input type="text" id="tua_content" name="news_full" value="{$tua_content}" style="width:200px"/></td>
        <td align="right"><strong>ID người tạo:</strong></td>
        <td align="left"><input type="text" id="tua_user_c" name="tua_user_c" value="{$tua_user_c}" style="width:200px"/></td>
        <td align="right"><strong>Tỉnh thành:</strong></td>
        <td align="left">
            <select name="tua_city_id">
                                        <option value="0">Tất cả</option>
                                        {html_options options=$province selected=$tua_city_id}
                                    </select>
        </td>
    </tr>
    <tr>
        <td align="right" style="font-weight: bold">Ngày đăng: </td>
        <td colspan="5" align="left">
            <input type="text" name="news_time_c" id="time_c" placeholder="Ngày đăng" value="{$time_c}">
        </td>
    </tr>
    <tr>
        <td align="right">&nbsp;</td>
        <td colspan="5" align="left"><input type="submit" value="Tìm kiếm"/></td>
    </tr>
</table>
    
        <div class="form_content">     
            <div style="border:2px solid #FFFFFF;">
                <table width="100%" cellpadding="5" cellspacing="1" border="1" style="border-collapse:collapse" bordercolor="#C3C3C3">
                    <tr valign="middle" bgcolor="#E6E6E6" style="line-height:20px">
                        <th width="3%" title="check_all">
                            <input type="checkbox" value="1" id="ItemType_all_checkbox"
                                   onclick="selectAllCheckbox(this.form,'ItemType',this.checked,'#FFFFEC','white');">
                        </th>
                        <th width="3%" align="left" nowrap>
                            ID
                        </th>
                        <th width="17%" align="left">
                            Tiêu đề
                        </th>
                        <th width="25%" align="left">
                            Mô tả
                        </th>
                        
                        <th width="5%" align="left" nowrap>
                            Thông tin
                        </th>           
                        <th width="5%" align="left" nowrap>
                            Bản đồ
                        </th>    
                        <th width="3%" align="left" nowrap="nowrap">
                            Trạng thái
                        </th>
                        <th width="3%" align="left" nowrap>
                            Sửa
                        </th>
                        <th width="3%" align="left" nowrap>
                            Xóa
                        </th>
                    </tr>
                   {if $total_tuas eq '0'}
                       <tr>
                           <td colspan="10" align = "center" ><strong>Không tìm thấy tin nào !</strong></td>
                       </tr>
                       {/if}
                    {foreach from=$all_tuas item=items}
                    <tr bgcolor="#FFFFFF" onmouseover="style.backgroundColor='#CCFFCC'" onmouseout="style.backgroundColor='#FFFFFF'" id="sys_tr_news_id_{$items.id}">
                        <td width="3%" align="center">
                        	<input class="sys_checkbox_id_news" name="selected_ids[]" type="checkbox" value="{$items.id}"
                                   onclick="select_checkbox(this.form,'ItemType',this,'#FFFFEC','white');">
                        </td>
                        <td width="3%" nowrap align="left">
                            {$items.id}                    
                        </td>
                        <td width="17%" align="left">
                            <a href="tourist_attractions.html?cmd=view&amp;id={$items.id}" style="text-decoration:none;font-weight: bold">{$items.name}</a><br />
                                {if $items.img_url}
                                    <img width="100%"  height="120px" src="{$server_img}/{$items.img_url}" href="tourist_attractions.html?cmd=view&amp;id={$items.id}" />
                                {/if}
                        </td>
                        <td width="25%" align="left">
                            {$items.intro}                    
                        </td>
                        
                        <td width="10%" align="left" nowrap="nowrap">
                            <a class="tooltip" href="news.html" onclick='return false;'>Thông tin<span>
                                {if $items.status eq '-1'}
                                    ID người xóa:<strong> {$items.user_del}</strong><br />
                                    Email người xóa: <strong>{$items.user_del_email}</strong><br />
                                    Thời gian xóa: <strong>{$items.time_del|date_format:"%H:%M %d/%m/%y"}</strong><br />
                                    {/if}
                                    Tỉnh: <strong>{$city[$items.city_id].name}</strong><br />
                                    Email người tạo: <strong>{$items.user_c_email}</strong><br />
                                    Thời gian tạo: <strong>{$items.time_c|date_format:"%H:%M %d/%m/%y"}</strong><br />
                                    Thời gian sửa lần cuối:<strong> {$items.time_m|date_format:"%H:%M %d/%m/%y"}</strong><br />
                                    Email người sửa cuối: <strong>{$items.user_m_email}</strong><br />
                                </span></a>
                        </td>
                        <td width="3%" align="left" nowrap="nowrap">
                            <i class="icon iPlace"></i>
                            <a href="javascript:void(0)" onclick="chooseMap(); return false;">Xem bản đồ</a></p>
                            <input type="hidden" name="hotel_map_location" value="{$items.map_location}">
                            <input type="hidden" name="hotel_latitude" value="{$items.latitude}">
                            <input type="hidden" name="hotel_longitude" value="{$items.longitude}">
                            
                            <div id="choose_map" style="display: none; position: relative;">
                                <div id="inputForm">
                                    <input type="button" value="Xong" onclick="jQuery('#choose_map').hide();"/>
                                    <input type="hidden" id="query"/>
                                    <div id="options" style="display: none;">
                                        <span style="font-weight: bold">Bias this viewport:</span>
                                        <input type="checkbox" id="biasViewport"/>
                                        <span style="font-weight: bold">Country bias:</span>
                                        <input type="text" size="2" id="country"/>
                                        <span style="font-weight: bold">Language:</span>
                                        <input type="text" size="2" id="language"/>
                                    </div>
                                </div>
                                <div id="responseInfo" style="display: none;">
                                    <div id="responseStatus">
                                        <div>
                                            <span style="font-weight: bold">Geocoder response: </span>
                                            <span id="statusValue"></span> (<span id="statusDescription"></span>)
                                        </div>
                                    </div>
                                    <div id="responseCount">
                                        <span style="font-weight: bold;">Matches returned: </span>
                                        <span id="matchCount"></span>
                                    </div>
                                </div>
                                <div id="mapcontainer">
                                    <div id="map"></div>
                                    <div id="boundsLegend">Bounds</div>
                                    <div id="viewportLegend">Viewport</div>
                                </div>
                                <div id="matches" style="display:none"></div>
                            </div>
                        </td>
                        <td width="3%" align="left" nowrap="nowrap">
                                {if $items.status eq '1'}
                                    Hiện
                                {elseif $items.status eq '2'}
                                    <i>Ẩn</i>
                                {else}
                                    <font color="red">Đã xóa</font>
                                {/if}
                        </td>
                        <td width="3%" align="left" nowrap><a href="tourist_attractions.html?cmd=edit&amp;id={$items.id}">Sửa</a>
                        </td>
                        <td width="3%" >
                            <a href="tourist_attractions.html?cmd=del&amp;id={$items.id}" onClick = "return confirmSubmit();">Xóa</a>
                        </td>
                    </tr>
                    {/foreach}
                </table>
               
                <table width="100%">
      <tr>
                        <td width="100%">
                            Lựa chọn
                            [<a href="javascript:void(0);"
                               onclick="selectAllCheckbox(document.ListNewsForm,'ItemType',true,'#FFFFEC','white');">Chọn tất cả</a>]&nbsp;
                            [<a href="javascript:void(0);"
                               onclick="selectAllCheckbox(document.ListNewsForm,'ItemType',false,'#FFFFEC','white');">Bỏ chọn</a>]&nbsp;
                            [<a href="javascript:void(0);"
                               onclick="selectAllCheckbox(document.ListNewsForm,'ItemType',-1,'#FFFFEC','white');">Chọn ngược lại</a>]&nbsp;
                                   [<a href="javascript:;" onclick="del_tuas_selected()" >Xóa các tin đã chọn</a>]&nbsp;
                        </td>
                                   
                    </tr>
                </table>
                <table width="100%" class="table_page_setting">
                    <tr>
                        <td class="paging_block">
                        {$paging}
                        </td>
                    </tr>
                </table>
                <input type="hidden" name="cmd" value="" id="cmd"/>
            </div>
        </div>